package HomeWork2;

//六十一个轮回

public class TOCH {
    public static void main(String []args){
        char[] heavenlyStems = { '甲' , '乙' , '丙' , '丁' , '戊' , '己' , '庚' , '辛' , '壬' , '癸' };
        char[] earthlyBranches = { '子' , '丑' , '寅' , '卯' , '辰' , '巳' , '午' , '未' , '申' , '酉' , '戌' , '亥' };

        int x = 0;
        int y = 0;
        int count = 0;
        while (count < 60){
            System.out.print(heavenlyStems[x++] + "" +earthlyBranches[y++] + "  ");
            count++;
            if (x == heavenlyStems.length)
                x = 0;
            if (y == earthlyBranches.length)
                y = 0;
            if (count == 60)
                break;
            if (count % 12 == 0)
                System.out.println();
        }

    }
}
